
export function wxToPay(str) {
  uni.requestPayment({
    provider: 'wxpay',
  	timeStamp: String(Date.now()),
  	nonceStr: 'A1B2C3D4E5',
  	package: 'prepay_id=wx20180101abcdefg',
  	signType: 'MD5',
  	paySign: '111222333',
  	success: function (res) {
  		console.log('success:' + JSON.stringify(res));
  	},
  	fail: function (err) {
  		console.log('fail:' + JSON.stringify(err));
  	}
  });
}